<!--
 * @Author: Baishui
 * @Date: 2021-10-08 17:05:04
 * @LastEditors: Baishui
 * @LastEditTime: 2021-10-08 17:17:28
 * @Description: file content
-->
<template>
  <component :is="iconName" />
</template>

<script lang="ts">
  import { defineComponent, reactive, toRefs } from 'vue'
  import {
    HomeOutlined,
    AppstoreOutlined,
    AccountBookOutlined,
    AimOutlined,
    ApartmentOutlined,
    CarryOutFilled,
    BlockOutlined,
  } from '@ant-design/icons-vue'

  export default defineComponent({
    name: 'MenuIcon',
    components: {
      HomeOutlined,
      AppstoreOutlined,
      AccountBookOutlined,
      AimOutlined,
      ApartmentOutlined,
      CarryOutFilled,
      BlockOutlined,
    },
    props: {
      iconName: {
        type: String,
        default: '',
      },
    },
    setup() {
      const state = reactive({})
      return {
        ...toRefs(state),
      }
    },
  })
</script>
